#include <stdio.h>

#ifdef DEBUG
#define debug(fmt, ...) fprintf(stderr, "DEBUG: %s:%d:%s(): " fmt "\n", \
                                __FILE__, __LINE__, __func__, ##__VA_ARGS__)
#else
#define debug(fmt, ...) // 空实现
#endif

void add(int a, int b) {
    int sum = a + b;
    debug("a = %d, b = %d, sum = %d", a, b, sum);
}

int main() {
    int x = 5;
    int y = 10;

    debug("Starting main function");
    add(x, y);
    debug("Ending main function");

    printf("Program completed.\n");
    return 0;
}

